package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 用户挂单sn表
 * </p>
 *
 * @author chenj
 * @since 2020-03-19
 */
public class UserHangSn extends Model<UserHangSn> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 商品序列号
     */
    private String goodsId;

    /**
     * 序列号表id
     */
    private String goodsSnId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getGoodsSnId() {
        return goodsSnId;
    }

    public void setGoodsSnId(String goodsSnId) {
        this.goodsSnId = goodsSnId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserHangSn{" +
            "id=" + id +
            ", userId=" + userId +
            ", goodsId=" + goodsId +
            ", goodsSnId=" + goodsSnId +
        "}";
    }
}
